<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>文档管理</title>
		<link rel="stylesheet" type="text/css" href="../css/style1.css" />
		<link rel="stylesheet" type="text/css" href="../css/base.css" />
		<link rel="stylesheet" type="text/css" href="../css/indexbody.css" />
<link rel="stylesheet" type="text/css" href="../css/style1.css" />
<link rel="stylesheet" type="text/css" href="../css/base.css" />
<link rel="stylesheet" type="text/css" href="../css/indexbody.css" />
<script type="text/javascript" src="../js/frame.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
	window.onload = function() {
		document.getElementById("hide").style.display = "block";
		document.getElementById("sc").style.display = "none";
		document.getElementById("vip").style.display = 'none';
		document.getElementById("mb").style.display = 'none';
		document.getElementById("sys").style.display = 'none';

	}

	//反选
	function ReSel() {
		$(":checkbox").each(function() {
			$(this).attr("checked", !this.checked);
		});
	}

	//全选
	function SelAll() {
		$(":checkbox").each(function() {
			$(this).attr("checked", true);
		});
	}

	//取消
	function NoneSel() {
		$(":checkbox").each(function() {
			$(this).attr("checked", false);
		});
	}
	function deletems() {
		document.from1.action = "message!deletems.action";
		document.from1.submit();
	}
	function checkms() {
		document.from1.action = "message!checkms.action";
		document.from1.submit();
	}
</script>
</head>
<body leftmargin="8" topmargin="8" background='../images/allbg.gif'>
	<div id="container">
		<jsp:include page="../header.jsp"></jsp:include>
		<div style="float:left; width:195px; height: 550px">
			<jsp:include page="../leftnav.jsp"></jsp:include>
		</div>
		<div
			style="float:left; overflow-y:scroll; overflow-x:hidden; width: 785px; height: 550px;">

			<table width="98%" border="0" align="center" cellpadding="0"
				cellspacing="1" bgcolor="#cfcfcf">
				<tr>
					<td align="center" height="28"
						background="../images/newlinebg3.gif"><a
						href="columns!getAlladd.action" class="coolbg">添加文档</a> <a
						href="columns!getAlladd.action" class="coolbg">我的文档</a><a
						href="columns!getAlladd.action" class="coolbg">更新列表</a>
					</td>
				</tr>
			</table>
			<form name="form1" method="post" action="">
				<table width='98%' border='0' cellpadding='2' cellspacing='1'
					bgcolor='#cfcfcf' align='center' style="margin-top:8px;">

					<tr bgcolor='#EEF4EA' height='20'>
						<td background='../images/wbg.gif' colspan="2"
							style="padding-left:10px;">图片集 &gt; 文档列表</td>
						<td colspan="4">栏目:<s:select list="columns" headerValue="全部"
								headerKey="0" listKey="id" listValue="columsInfo"
								name="columnsid" theme="simple"></s:select> 排序：<select
							name="order"><option value="timeasc">时间升序</option>
								<option value="timedesc">时间降序</option>
								<option value="admin">发布人</option>
						</select> 关键字： <input type='text' name='keywords' value=''
							style='width:150px;height:20px;' /> <input type="submit" name=""
							value="搜索" /></td>
					</tr>

				</table>
			</form>
			<form name="form2">
				<table width="98%" border="0" cellpadding="1" cellspacing="1"
					class='ilist' bgcolor="#FAFAF1" align='center'
					style="margin-top:8px;">
					<tr bgcolor="#FBFCE2" height="25" align="center">
						<td width="20%" align='center'>标题</td>
						<td width="10%" align='center'>作者</td>
						<td width="10%" align='center'>浏览次数</td>
						<td width="10%" align='center'>权限</td>
						<td width="10%" align='center'>发布时间</td>
						<td width="40%" align='center'>操作</td>
					</tr>
					<s:iterator value="softWares">
						<tr>
							<td width="20%" align='center'>${info.simplTitle }</td>
							<td width="10%" align='center'>${info.author}</td>
							<td width="10%" align='center'>${info.click}</td>
							<td width="10%" align='center'>${info.simplTitle }</td>
							<td width="10%" align='center'>${info.createTime }</td>
							<td width="40%" align='center'><a
								href="javascript:viewArc(0)" class="coolbg">&nbsp;查看&nbsp;</a> <a
								href="javascript:editArc(0)" class="coolbg">&nbsp;更改&nbsp;</a> <a
								href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
								<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
							</td>
						</tr>
					</s:iterator>
				</table>
				<table width="98%" cellpadding="1" cellspacing="1" align='center'>
					<tr>
						<td colspan="6" align="center"><pg:pager items="${total }"
								maxIndexPages="5" maxPageItems="2"
								url="pictures!getAllByCondition.action"
								export="currentPageNumber=pageNumber">
								<pg:index>
									<pg:first>
										<a href="${pageUrl}"><nobr>[首页]</nobr> </a>
									</pg:first>
									<pg:prev>
										<a href="${pageUrl}">前一页</a>
									</pg:prev>
									<pg:pages>
										<c:choose>
											<c:when test="${currentPageNumber eq pageNumber}">
												<font color="red">&nbsp;[${pageNumber}]</font>
											</c:when>
											<c:otherwise>
												<a href="${pageUrl}">&nbsp;[${pageNumber}]</a>
											</c:otherwise>
										</c:choose>
									</pg:pages>
									<pg:next>
										<a href="${pageUrl}">下一页</a>
									</pg:next>
									<pg:last>
										<a href="${pageUrl}"><nobr>[尾页]</nobr> </a>
									</pg:last>
								</pg:index>
							</pg:pager></td>
					</tr>

					<tr bgcolor='#EEF4EA'>
						<td height="24" colspan="3">&nbsp; <input name="b1"
							type="button" id="b1" class="coolbg np" onClick="SelAll()"
							value="全选" /> &nbsp; <input name="b2" type="button" id="b2"
							class="coolbg np" onClick="ReSel()" value="反选" /> &nbsp; <input
							name="b3" type="button" id="b3" class="coolbg np"
							onClick="NoneSel()" value="取消" /></td>
						<td align="right" colspan="3"><input type='button' id='dltms'
							value=' 删除留言 ' onclick="deletems()" /> <input type='button'
							id='ckems' value='审核留言' onclick="checkms()" /></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>